package com.fortune.dto.in.dRole;
import java.util.List;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import io.swagger.annotations.ApiModelProperty;
/**
 * 
 * @author ran
 *
 */
public class DRoleEditDto {
	@NotBlank(message="岗位id不能为空")
	@ApiModelProperty(required=true, example="岗位id")
	private String roleId;
	@NotBlank(message="岗位名称不能为空")
	@ApiModelProperty(required=true, example="岗位名称")
	private String name;
	@NotBlank(message="岗位说明不能为空")
	@ApiModelProperty(required=true, example="岗位说明")
	private String memo;
	@NotEmpty(message="权限列表不能为空")
	private List<PermissionAddDto> permissions;
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public List<PermissionAddDto> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<PermissionAddDto> permissions) {
		this.permissions = permissions;
	}
	@Override
	public String toString() {
		return "MRoleEditDto [roleId=" + roleId + ", name=" + name + ", memo=" + memo + ", permissions=" + permissions
				+ "]";
	}
}
